package com.zhuangxiaoyan.springboot.mybatis.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Customer
 *
 * @author xjl
 * @version 2025/01/11 16:53
 **/
@Data
@EqualsAndHashCode
public class Customer {

    /**
     * 主键
     */
    private long id;

    /**
     * 客户名称
     */
    private String name;

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 客户电话
     */
    private String phone;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 修改时间
     */
    private Date gmtModify;
    /**
     * 版本号
     */
    private String version;
    /**
     * 扩展信息
     */
    private String extraInfo;

    /**
     * 地址
     */
    private List<Address> addresses = new ArrayList<>();

    @Override
    public String toString() {
        return "Customer{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", gmtCreate=" + gmtCreate +
                ", gmtModify=" + gmtModify +
                ", version='" + version + '\'' +
                ", extraInfo='" + extraInfo + '\'' +
                ", addresses=" + addresses +
                '}';
    }
}